package com.dc.ssjt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dc.ssjt.entity.Account;

import java.math.BigDecimal;

/**
 * Account数据操作
 *
 * @author duchao
 */
public interface AccountMapper extends BaseMapper<Account> {

    /**
     * 扣除账户钱
     *
     * @param userId 用户id
     * @param money  扣款金额
     */
    void decrease(Long userId, BigDecimal money);
}
